package com.atguigu.aopD;

import java.util.Arrays;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-01-16
 * @Description:
 * @Version: 1.0
 */
public class MyLogging {
    /**
     * 日志(方法前)通知
     */
    public static void methodBefore(String methodName,Object... args){
        System.out.println("==>"+methodName+"()正在执行,参数:"+ Arrays.toString(args));
    }


    /**
     * 日志(方法后)通知
     */
    public static void methodAfter(String methodName,Object rs){
        System.out.println("==>"+methodName+"()执行完毕!,结果rs:"+rs);
    }
}
